import { getEnergyAnalyzeEnterpriseAnalysis } from '@/api/energy';

export default {
  data () {
    return {
      gridItemOneData: []
    };
  },
  methods: {
    async getGridItemOneData () {
      const enterpriseId = this.$route.query.enterpriseId;
      // console.log(enterpriseId)
      if (!enterpriseId) return;
      try {
        const { data } = await getEnergyAnalyzeEnterpriseAnalysis(enterpriseId);
        this.gridItemOneData = data;
      } catch (e) {
        console.warn(e);
      }
    },
  },
}
